package com.zjm.structural.bridge.jdbc;

/**
 * 细化抽象：连接池连接
 */
public class PooledConnection extends DatabaseConnection{
    public PooledConnection(DatabaseDriver driver, String url, String username, String password) {
        super(driver, url, username, password);
    }

    @Override
    public void executeQuery(String sql) {
        System.out.println("连接池连接执行查询");
        driver.executeQuery(sql);
    }

    @Override
    public void close() {
        System.out.println("连接池连接返回到池中，不实际关闭");
    }
}
